package cn.iocoder.yudao.module.member.controller.app.companytemplate.vo;

import cn.iocoder.yudao.framework.common.validation.Email;
import cn.iocoder.yudao.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Schema(description = "管理后台 - 会员公司信息模板新增/修改 Request VO")
@Data
public class CompanyTemplateSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17815")
    private Long id;

    @Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "公司名称不能为空")
    @Length(max = 120, message = "公司名称长度不能超过 120 个字符")
    private String companyName;

    @Schema(description = "统一社会信用代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "统一社会信用代码不能为空")
    @Length(max = 60, message = "统一社会信用代码长度不能超过 60 个字符")
    private String companyLicenseNumber;

    @Schema(description = "法人名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "法人名称不能为空")
    @Length(max = 30, message = "法人名称长度不能超过 30 个字符")
    private String legalName;

    @Schema(description = "身份证号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "身份证号不能为空")
    @Length(max = 18, message = "身份证号长度不能超过 18 个字符")
    private String idCard;

    @Schema(description = "电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "电话不能为空")
    @Mobile
    private String phone;

    @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "邮箱不能为空")
    @Email
    private String email;

    @Schema(description = "身份证正面", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "身份证正面不能为空")
    @Length(max = 255, message = "身份证正面长度不能超过 255 个字符")
    private String idPositive;

    @Schema(description = "身份证反面", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "身份证反面不能为空")
    @Length(max = 255, message = "身份证反面长度不能超过 255 个字符")
    private String idNegative;

    @Schema(description = "营业执照", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "营业执照不能为空")
    @Length(max = 255, message = "营业执照长度不能超过 255 个字符")
    private String license;

}